# !/usr/bin/python3
# -*- coding: utf-8 -*-
# @Time    : 2021/10/8 17:47
# @Author  : zuodengbo
# @Email   : zuodb@amoydx.com
# @File    : const
# @Software: PyCharm

class UserStatus(object):
    abandon = 0  # 禁用
    normal = 1  # 正常


class UserSuper(object):
    general_user = 0  # 普通用户
    super_user = 1   # 超级用户


class RoleAndAuthorityStatus(object):
    frozen = 0  # 冻结
    available = 1  # 可用


class UserJobStatus(object):
    dimission = 0  # 离职
    mission = 1  # 在职


class RespCode(object):
    success = 200
    forbidden = 403
    not_found = 404
    not_allowed = 405
    unprocessable_entity = 422
    username_already_exists = 1000
    username_not_exists = 1100
    user_register_failed = 1001
    database_error = 1200
    role_already_exists = 2100
    role_not_exists = 2200
    authority_not_exists = 2300
    passwd_incorrect = 2000
    query_failed = 2001
    unknown_failure = 2002
    save_verify_code_failed = 3000
    verify_code_not_exists = 3001
    verify_code_expired = 3002


class DefaultConst(object):
    default_count = 0
    page_num = 1
    page_size = 50
    expire_time = 28800
